Random Functions

All max values are exclusive, so "game.getRandom_i(0, 10)" gives 0 at minimum and 9 at maximum.

getRandom()

Returns a value between 0.0 and 1.0.

getRandom_b()

Returns either false or true.

getRandom_i()

Returns either 0 or 1.

getRandom_f()

Returns a value between 0.0 and 1.0.

getRandom(Max Type > Float)

Returns a value between 0.0 and max.

getRandom_i(Max Type > Integer)

Returns a value between 0 and max.

getRandom_f(Max Type > Float)

Returns a value between 0.0 and max.

getRandom(Min Type > Float, Max Type > Float)

Returns a value between min and max.

getRandom_i(Min Type > Integer, Max Type > Integer)

Returns a value between min and max.

getRandom_f(Min Type > Float, Max Type > Float)

Returns a value between min and max.

getRandomSeeded(Seed (Any Type))

Returns a value between 0.0 and 1.0.

getRandomSeeded_b(Seed (Any Type))

Returns either false or true.

getRandomSeeded_i(Seed (Any Type))

Returns either 0 or 1.

getRandomSeeded_f(Seed (Any Type))

Returns a value between 0.0 and 1.0.

getRandomSeeded(Seed (Any Type), Max Type > Float)

Returns a value between 0.0 and max.

getRandomSeeded_i(Seed (Any Type), Max Type > Integer)

Returns a value between 0 and max.

getRandomSeeded_f(Seed (Any Type), Max Type > Float)

Returns a value between 0.0 and max.

getRandomSeeded(Seed (Any Type), Min Type > Float, Max Type > Float)

Returns a value between min and max.

getRandomSeeded_i(Seed (Any Type), Min Type > Integer, Max Type > Integer)

Returns a value between min and max.

getRandomSeeded_f(Seed (Any Type), Min Type > Float, Max Type > Float)

Returns a value between min and max.

pushRandomSeed(Seed (Any Type))

Pushes the seed on the seed stack. Random generation uses the top most seed on the stack. Does not affect "Seeded" functions. Don't forget to pop the seed of the stack after generation is done.

popRandomSeed()

Pops the top most seed of the stack.

pushRandomSeed_World()

Pushes a random seed unique to this save.

pushRandomSeed_Day()

Pushes a random seed unique to this save and day.

pushRandomSeed_Week()

Pushes a random seed unique to this save and week.